<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <input id="sid" name="row[staff_id]" type="text" class="hidden" value="{$staffid}">
    <input id="typeid" name="row[pic_type_id]" type="text" class="hidden" value=1>
    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('src')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-img" class="form-control" size="50" name="row[src]" type="text" value="" data-rule="required"><br>
                <span><button id="plupload-img" class="btn btn-danger plupload" data-mimetype="jpg" data-input-id="c-img" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <ul class="row list-inline plupload-preview" id="p-img"></ul>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="weight" class="control-label col-xs-12 col-sm-2">{:__('weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="weight" class="form-control" name="row[weight]" type="number" value="0" data-rule="required" >
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
